function creatStore(arr, config) {
  var state = config || {};
  var list = [];
  return {
    getState: function (data) {
      return state[data];
    },
    dispatch: function (key, value) {
      state[key] = value;
      list.push(value);
    },
    subsribe: function () {},
  };
}
